ident = '$Id: about.py 109 2006-06-05 18:46:37Z trevor $'

# Activator
import wx
import common
import images
class AboutDialog( wx.Dialog ):
	def __init__( self ):
		binfo = '''version: %s
build: %s
'''
		binfo = binfo % ( common.version_number,
						  common.build_number )
		title = "About EDE"
		wx.Dialog.__init__( self, None, -1, title, wx.DefaultPosition, wx.Size( 551, 300 )  )
		bmp = images.getProSplashBitmap()
		splash = wx.StaticBitmap( self, -1, bmp, pos=(0,0) )
		label  = wx.StaticText( self, -1, binfo, pos=(320,160) )
		btn = wx.Button( self, -1, "&OK", pos=(250,250) )
		btn.Bind( wx.EVT_BUTTON, self.OnClose )
		self.SetIcon( images.getESMIcon() )
		# Windows needs this call
		self.Layout()

	def OnClose( self, event ):
		self.Close()

